import '@/assets/font/iconfont.js'
import '@/assets/scss/index.scss'
import '@/utils/highlight'
import '@/utils/dbStore'
import { version } from '@/assets/version/version.json'
import { createApp } from 'vue'
import { createPinia } from 'pinia'
import { i18n } from '@/language'
import { isUpdate } from '@/utils/utils'
import pinPlugin from 'pinia-plugin-persistedstate'
import App from '@/App.vue'
import router from '@/router'
import vueGlobal from '@/utils/vueGlobal'
import highVuePlugin from '@highlightjs/vue-plugin'

isUpdate(version)
const app = createApp(App)
app.use(createPinia().use(pinPlugin))
app.use(i18n)
app.use(vueGlobal)
app.use(highVuePlugin)
app.use(router)
app.mount('#app')
